package com.tensquare.notice.client;

import com.tensquare.entity.Result;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author: xxx
 * @Date: 2022/11/10 19:16
 * @Description: 文章
 */
@FeignClient("tensquare-article")
public interface ArticleClient {
    
    //根据文章Id查询文章数据
    @ApiOperation(value = "根据文章id查询文章")
    @GetMapping("article/{articleId}")
    public Result findById(@PathVariable(value = "articleId") String articleId);
}
